#pragma warning(disable:4100)
#include <Windows.h>
#include <tchar.h>

#include "CMainFrame.h"
#include "resource.h"

int WINAPI WinMain(
    _In_ HINSTANCE hInstance,
    _In_opt_ HINSTANCE hPrevInstance,
    _In_ LPSTR lpCmdLine,
    _In_ int nShowCmd)
{
    UNREFERENCED_PARAMETER(hInstance);
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);
    UNREFERENCED_PARAMETER(nShowCmd);

    HMENU hMenu = ::LoadMenu(hInstance, MAKEINTRESOURCE(IDR_MENU));
    CMainFrame gameFrame;
    gameFrame.Register(_T("CTankBattle"));
    gameFrame.Create(nullptr, _T("CTankBattle"), SW_SHOW, WS_POPUP | WS_CAPTION | WS_SYSMENU, 0, 0, 0, MAIN_FRAME_WIDTH, MAIN_FRAME_HEIGHT, true, hMenu);
    gameFrame.Run();

    return 0;
}
